<?php

Route::group([], function (\Illuminate\Routing\Router $router) {




});

Route::group([
    'middleware' => 'jwt.auth',
], function (\Illuminate\Routing\Router $router) {

    // 试卷列表
    $router->get('examList','ExamController@examList');

    // 获取试卷的试题
    $router->post('getNextQuestion','ExamController@getNextQuestion');

    // 开始考试
    $router->post('startExam','ExamController@startExam');

    // 提交试题答案
    $router->post('commitQuestion','ExamController@commitQuestion');

    // 交卷
    $router->post('commitExam','ExamController@commitExam');

    // 获取成绩
    $router->get('getScore','ExamController@getScore');

});